package com.itheima.dubbo.interfaces;

import com.itheima.commons.model.domain.Settings;

/**
 * 个人中心通知设置表 接口
 */
public interface SettingsApi {
    /**
     * 根据用户id查询通知设置
     *
     * @param userId
     * @return
     */
    Settings querySettings(Long userId);

    /**
     * 更新用户的通知设置
     *
     * @param userId
     * @param likeNotification
     * @param pinglunNotification
     * @param gonggaoNotification
     */
    void updateNotification(Long userId, Boolean likeNotification, Boolean pinglunNotification, Boolean gonggaoNotification);
}
